#ifndef __STDTHREADPOOL_H__
#define __STDTHREADPOOL_H__

// 线程池
struct StdThreadPool;
typedef struct StdThreadPool ThreadP;

// 初始化
ThreadP * ThreadPoolInit(int MaxThrdNum, int MinThrdNum, int MaxQueueSize, int SleepTime);

// 线程池添加任务
void ThreadPoolAddTask(ThreadP *p, void *(*func)(void *), void* arg);

// 手动关闭线程池
void ClearThreadPool(ThreadP *p);

#endif // __STDTHREADPOOL_H__